<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>学科字典</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
   
  	<style>
  		.prevImg{
  			float:left;
  			margin:2px;
  		}
  		.prevImg a{
  			display: block;
    		text-align: center;
    		cursor:pointer;
    		color:rgb(0,162,212)
  		}
  	</style>
 </head>
 <body>
  <t:formvalid   formid="formobj" dialog="true" enctype="multipart/form-data" layout="table" action="appMenuController.do?doAdd" tiptype="3" >
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							菜单名称:
						</label>
					</td>
					<td class="value">
					     	 <input id="menuName" name="menuName" type="text" 
					     	 style="width: 150px" class="inputxt"  datatype="*"  maxlength="80" onkeypress="specialTextValidate()">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">菜单名称</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							菜单代码:
						</label>
					</td>
					<td class="value">
					     	 <input id="menuCode" name="menuCode" type="text" style="width: 150px" class="inputxt" maxlength="80" >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">菜单代码</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							图片:
						</label>
					</td> 
					<td class="value"> 
		         		
		         		 <div id="wrapper">
					        <div id="container">
					
					            <div id="uploader">
					                <div class="queueList">
					                    <div id="dndArea" class="placeholder">
					                        <div id="filePicker"></div>
					                        <p>或将照片拖到这里，单次最多可选1张</p>
					                    </div>
					                </div>
					                <div class="statusBar" style="display:none;">
					                    <div class="progress">
					                        <span class="text">0%</span>
					                        <span class="percentage"></span>
					                    </div><div class="info"></div>
					                    <div class="btns">
					                        <div id="filePicker2"></div><div class="uploadBtn">开始上传</div>
					                    </div>
					                </div>
					            </div>
					        </div>
   						</div>
		           </td> 
			  </tr>	
				
				 
			</table>
		</t:formvalid>
 </body>
   
   <!-- 上传文件  -->
    <link rel="stylesheet" type="text/css" href="plug-in/webUploader/css/webuploader.css" />
    <link rel="stylesheet" type="text/css" href="plug-in/webUploader/style.css" />
    <script type="text/javascript" src="plug-in/webUploader/dist/webuploader.js"></script>
     <script type="text/javascript" src="plug-in/webUploader/third/uploadImg.js"></script>  
    
 <script>
			
			 $(document).ready(function () {
				$('#filePicker2').hide();
			});
			
			function  uploaderReady(){
				window.uploader.options.fileNumLimit =1;
			}
			 
			function deleteAttach(id){
				 $('#prevImg'+id).remove();
				 $('#formobj').append("<input type='hidden' name='deletedAttach'  value='"+id+"'/>");
			}
		 
		</script>